
package main.java.handler;
import main.java.RowProcessor;

import java.sql.ResultSet;
import java.sql.SQLException;

public class ColumnListHandler extends AbstractListHandler<Object>{

    private int columnIndex;

    public ColumnListHandler(int columnIndex){
        this.columnIndex = columnIndex;
    }

    @Override
    protected Object getRow(ResultSet rs) throws SQLException {
        return RowProcessor.toValue(rs,columnIndex);
    }
}
